

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

public class fileInputstreamDemo2 {
    public static void main(String[] args) throws IOException {
        System.out.println("========");

        InputStream is = new FileInputStream("F:\\000java_document\\02Java-next\\fileInputStreamDemo1\\src\\main\\java\\test1.txt");
        System.out.println("123123");

        byte[] buffer = new byte[3];
        int len;
        while ((len =is.read(buffer))!=-1){
            System.out.println(new String(buffer,0,len));
        }



    }
}
